package bm.com.project.server.organization.mapper;

import bm.com.project.server.organization.entity.BmOrgDepartmentEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BmOrgDepartmentMapper extends BaseMapper<BmOrgDepartmentEntity> {

    IPage<List> selectPage(Page<Object> page,@Param("queryParam") QueryWrapper<Object> queryWrapper);

    /**
     *  查询总数
     * @param queryWrapper
     * @return
     */
    Integer selectCount(QueryWrapper<Object> queryWrapper);

    BmOrgDepartmentEntity selectOne(QueryWrapper<Object> queryWrapper);


}
